
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Particles from '@tsparticles/vue3'
import { loadFull } from 'tsparticles'
import '@/assets/styles/reset.css'  // 重置样式
import "virtual:svg-icons-register" // 注册脚本
import globalComponents from '@/components/index' // 全局组件
const app = createApp(App)
const pinia = createPinia()
app.use(ElementPlus) // 使用element-plus组件库
app.use(globalComponents) // 使用全局组件
app.use(router)
app.use(pinia)



// 使用tsparticles库
app.use(Particles, {
    init: async (engine) => {
        await loadFull(engine);
    }
})

app.mount('#app')
